Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit ecf13e00416edcc040e5233402aada441a8f5650


Parents : e69f0b9
Author : Mark Qvist <mark@unsigned.io>
Date : 2023-12-03T02:05:12+01:00

Fixed light sensor bug in plyer

Changes

1 files changed, 1 insertions(+), 1 deletions(-)


Diff

diff --git a/sbapp/plyer/platforms/android/light.py b/sbapp/plyer/platforms/android/light.py
index 13dd3944..6e74b139 100644
--- a/sbapp/plyer/platforms/android/light.py
+++ b/sbapp/plyer/platforms/android/light.py
@@ -44,7 +44,7 @@ class AndroidLight(Light):
listener = None
def _get_illumination(self):
- if self.listener and self.listener.value:
+ if self.listener and self.listener.value != None:
light = self.listener.value
return light


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────